local skel = fk.CreateSkill {
  name = "emo__lingjian",
  tags = {Skill.Compulsory},
}

skel:addEffect(fk.CardUsing, {
  anim_type = "drawcard",
  on_use = function(self, event, target, player, data)
    local room = player.room
    local cards = room:getNCards(1)
    room:moveCardTo(cards, Card.Processing, nil, fk.ReasonPut, skel.name, nil, true, player)
    room:delay(800)
    --room:sendLog{ type = "#ShowCard", from = player.id, card = cards, }
    room:sendFootnote(cards, {
      type = "##ShowCard",
      from = player.id,
    })
    if Fk:getCardById(cards[1]).type == data.card.type then
      room:obtainCard(player, cards[1], true, fk.ReasonPrey, player, skel.name)
    else
      room:moveCardTo(cards, Card.DrawPile, nil, fk.ReasonPut, skel.name, nil, true, player)
    end
  end,
})


Fk:loadTranslationTable{
  ["emo__lingjian"] = "灵见",
  [":emo__lingjian"] = "锁定技，每当你使用牌后，你展示牌堆顶牌，若此牌的类别与你使用的牌：相同，你获得之；不同，将之放回牌堆顶。",
}


return skel
